import 'package:FlutterRoute/common/models/Store.dart';
import 'package:FlutterRoute/controllers/func/ProviderVC.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../../common/models/LoginUser.dart';

class FuncAndAnimate extends StatelessWidget{

  @override
  Widget build(BuildContext context) {
    // TODO: implement build

    return Scaffold(
      appBar: AppBar(title: Text("功能与动画"),),
      body: ListView(
        children: [
          Store.consumer<LoginUserProvider>(builder: (context,loginUser,_){
            return ListTile(title: Text("Provider(${loginUser.curUser.isLogin ? "已登录" : "未登录"})"),onTap: ()=> Navigator.pushNamed(context, "ProviderVC"),);
          })
        ],
      )
    );
  }
}

